package com.sleepcamel.resteasyConfigurator.model;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;

public class StatusBar {

	private final PropertyChangeSupport pcs = new PropertyChangeSupport( this );
	
	private String status;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.pcs.firePropertyChange("status", this.status, this.status = status);
	}
	
	public void addPropertyChangeListener(PropertyChangeListener listener) {
		this.pcs.addPropertyChangeListener(listener);
	}

	public void removePropertyChangeListener(PropertyChangeListener listener) {
		this.pcs.removePropertyChangeListener(listener);
	}
}
